package senpec.qc.harmony.base.mybatisplus;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
@CacheNamespace(flushInterval = 60000, size = 512)
public interface IBaseMapper<T> extends BaseMapper<T> {

    Integer activeById(Long id);

    Integer physicalDeleteById(Long id);

    T selectByIdIgnoreDelete(Long id);

    List<T> selectListDeleted();

    List<T> selectListIgnoreDelete();

}
